import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)

export default new Router({
  routes: [

    {
      path:'/',
      name:'index',
      component:() =>import('@/views/index')
    },
    {
      path:'/axios',
      name:'axios',
      component:() =>import('@/views/components/axios')
    },
    {
      path:'/less',
      name:'less',
      component:() =>import('@/views/components/less')
    },
    {
      path:'/fatherSon',
      name:'fatherSon',
      component:() =>import('@/views/components/fatherson/father')
    },
    {
      path:'/vuex',
      name:'vuex',
      component:() =>import('@/views/components/vuex')
    },
    {
      path:'/elses',
      name:'elses',
      component:() =>import('@/views/components/elses/elses')
    },
    {
      path:'/echarts',
      name:'echarts',
      component:() =>import('@/views/components/echarts')
    },
    {
      path:'/viewer',
      name:'viewer',
      component:() =>import('@/views/components/viewer')
    }
  ]
})
